﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;
using UnityEngine.UI;

namespace Elvex
{
    public class HUDCanvas : MonoBehaviour
    {
        private static HUDCanvas m_self = null;

        public static Transform HUDLayout { get { return m_self.transform; } }

        /// <summary>
        /// UI层级数量
        /// </summary>
        public int HUDLayer = 0;

        private void Awake()
        {
            if(null != m_self)
            {
                throw new Exception("HUDCanvas is already existed.");
            }
            m_self = this;
            DontDestroyOnLoad(gameObject);
        }

    }
}
